<%
Calendar now = Calendar.getInstance()
if(params.weekOfYear==null) params.weekOfYear = now.get(Calendar.WEEK_OF_YEAR)
if(params.month==null) params.month = now.get(Calendar.MONTH) + 1 else params.month = params.month
int week = params.weekOfYear.toInteger()
int month = params.month.toInteger()
%>
<table style="border-width: 0px">
	<tr>
			<td style="text-align: left">
				<%
					def prevParams = params.clone()
					prevParams.weekOfYear = week - 1
				  	prevParams.month = month - 1
				 %>
				<g:link class="btn" action="index" params="${prevParams}"><g:message code="default.paginate.prev" /></g:link>
			</td>
			<td></td>
			<td style="text-align: right">
				<%
					def nextParams = params.clone()
					nextParams.weekOfYear = week + 1
				  	nextParams.month = month + 1
				 %>
				<g:link class="btn" action="index" params="${nextParams}"><g:message code="default.paginate.next" /></g:link>
			</td>
	</tr>
</table>